<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:p="http://primefaces.org/ui"
			xmlns:h="http://java.sun.com/jsf/html"
				xmlns:f="http://java.sun.com/jsf/core"
					xmlns:ui="http://java.sun.com/jsf/facelets">
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title>Sistema Inforse WEB</title>
		<link rel="stylesheet" type="text/css" href="/css/inforse.css" />		
	</h:head>
	 
	
	<h:body style="background-image:url('/imagens/fading_background_17.png');background-repeat:repeat-x;">
		<h:form id="form">
			<p:growl autoUpdate="true" id="message" sticky="true" errorIcon="/imagens/erro.png"/>
			
			<p:panel header="Acesso ao Sistema Inforse WEB" style="position:absolute;left:28%;top:15%;height:45%;width:45%;">
				<div>
					<p:graphicImage url="/imagens/inforse-site.jpg" width="100%"/>
				</div>
				<p:separator />
				
				<p:panel style="position:absolute;left:5%;top:60%;right:5%;bottom:5%;">
					<div style="position:absolute;top:5%;width:100%;">
						<div>
							<h:outputLabel value="Operador" style="position:relative;font-family:Comic;color:black;font-weight:bold;font-size:16px;margin-left:8%;"/>
						</div>
						<div>
							<p:inputText label="Operador" value="#{usuarioMB.usuario.operador}" required="true" requiredMessage="Digite o operador!" style="position:relative;font-size:14px;margin-left:8%" size="25"/>
						</div>
						<div>
							<h:outputLabel value="Senha" style="position:relative;font-family:Comic;color:black;font-weight:bold;font-size:16px;margin-left:8%;"/>
						</div>
						<div>
							<p:password feedback="false" label="Senha" value="#{usuarioMB.usuario.senha}" required="true" requiredMessage="Digite a senha!" style="position:relative;font-size:14px;margin-left:8%;margin-bottom:30%;" size="25"/>
							<p:commandButton ajax="false" image="logar" value="Entrar" action="#{usuarioMB.autenticarUsuario}" style="position:absolute;color:black;font-weight:bold;font-size:14px;right:80px;bottom:75%;" />	
						</div>					
					</div>
				</p:panel>
			</p:panel>			
		</h:form>						  	
	</h:body>
</html>